package com.plate.api.system.remoteService;

import com.plate.api.system.domain.SysUser;
import com.plate.api.system.fallback.RemoteSystemServiceFallback;
import com.plate.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @ClassName RemoteSystemService
 * @Description TODO
 * @Author jiaxd
 * @Date 2023年10月22日 13:29
 * @Version 1.0
 */

@FeignClient(value = "plate-modules-system", fallback = RemoteSystemServiceFallback.class)
public interface RemoteSystemService {

    @PostMapping("sys/sysUser/getUserByUsername/{username}")
    public Result<SysUser> getUserByUsername(@PathVariable("username") String username, @RequestHeader("source") String source);

}
